/*
 * XYZLagList.java
 *
 * Created on November 30, 2004, 12:56 PM
 */

package edu.temple.GUS.MMA.Neighborhoods;

import java.util.ArrayList;
/**
 *
 * @author  jeffleon
 */
public class XYZLagList {
    
    private ArrayList list;
    
    /** Creates a new instance of XYZLagList */
    public XYZLagList() { list = new ArrayList(); }
    
    /* Appends the specified XYZLag to the end of the list. */
    /* Return true if successful otherwise false */
    public boolean add(XYZLag lag) {return list.add(lag);}
    
    /* Inserts a XYZLag at the specified position in this list. */
    public void add(int index, XYZLag lag) throws IndexOutOfBoundsException {list.add(index, lag);}
    
    /* Removes all of the lags from this list. */
    public void clear() {list.clear();}
    
    /* Returns a XYZLag at the specified position in this list. */
    public XYZLag get(int index) { return (XYZLag)list.get(index);}
     
    /* Tests if this list has no element. */
    public boolean isEmpty() { return list.isEmpty();}
     
    /* Removes an element at the specified position in this list. */
    public XYZLag remove(int index) { return (XYZLag)list.remove(index);}
    
    /* Returns the number of elements in this list. */
    public int size() { return list.size();}
}
